package com.xnyzc.lhy.didi.feign.worksheet;

import com.xnyzc.lhy.common.entity.DiDiRv;
import com.xnyzc.lhy.didi.entity.param.workorder.CreateWorkOrderParam;
import com.xnyzc.lhy.didi.entity.param.workorder.UpdateWorkOrderParam;
import com.xnyzc.lhy.didi.entity.param.workorder.WorkOrderUrgentParam;
import com.xnyzc.lhy.didi.feign.fallback.mq.MqServiceFallbackImpl;
import com.xnyzc.lhy.didi.feign.fallback.worksheet.WorkOrderServiceFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "${feign.applicationName.mis}", fallback = WorkOrderServiceFallbackImpl.class)
public interface IWorkOrderService {

    /**
     * 新建工单
     * @param createWorkOrderParam
     * @return
     */
    @PostMapping("/oa/didi/workorder/getCreateWorkOrder")
    DiDiRv getCreateWorkOrder(CreateWorkOrderParam createWorkOrderParam);

    /**
     * 更新工单
     * @param updateWorkOrderParam
     * @return
     */
    @PostMapping("/oa/didi/workorder/getUpdateWorkOrder")
    DiDiRv getUpdateWorkOrder(UpdateWorkOrderParam updateWorkOrderParam);

    /**
     * 工单加急接口
     * @return
     */
    @PostMapping("/oa/didi/workorder/getWorkOrderUrgent")
    DiDiRv getWorkOrderUrgent(WorkOrderUrgentParam workOrderUrgentParam);

}
